home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 14 / CU Amiga Magazine's Super CD-ROM 14 (1997)(EMAP Images)(GB)(Track 1 of 3)[!][issue 1997-09].iso / CUCD / Programming / Mesa-2.2 / Makefile < prev    next >
Encoding:
Makefile  |  1997-06-25  |  10.5 KB  |  293 lines

  1. # Top-level makefile for Mesa
  2.  
  3. # Mesa 3-D graphics library
  4. # Version:  2.1
  5. # Copyright (C) 1995-1996  Brian Paul
  6. #
  7. # This library is free software; you can redistribute it and/or
  8. # modify it under the terms of the GNU Library General Public
  9. # License as published by the Free Software Foundation; either
  10. # version 2 of the License, or (at your option) any later version.
  11. #
  12. # This library is distributed in the hope that it will be useful,
  13. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  15. # Library General Public License for more details.
  16. #
  17. # You should have received a copy of the GNU Library General Public
  18. # License along with this library; if not, write to the Free
  19. # Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  20.  
  21.  
  22. # $Id: Makefile,v 1.11 1996/11/30 14:35:40 brianp Exp $
  23.  
  24. # $Log: Makefile,v $
  25. # Revision 1.11  1996/11/30 14:35:40  brianp
  26. # fixed problem with openstep config
  27. #
  28. # Revision 1.10  1996/11/24 20:50:52  brianp
  29. # removed windows2/ and nt/ from tar file
  30. #
  31. # Revision 1.9  1996/11/24 19:33:10  brianp
  32. # added openstep config
  33. #
  34. # Revision 1.8  1996/11/14 01:42:45  brianp
  35. # added MS-DOS driver files to TAR_FILES macro
  36. #
  37. # Revision 1.7  1996/11/14 01:13:50  brianp
  38. # added rule to make a ZIP file
  39. #
  40. # Revision 1.6  1996/10/31 01:19:32  brianp
  41. # incremented version to 2.1
  42. #
  43. # Revision 1.5  1996/10/31 01:13:02  brianp
  44. # added VMS stuff
  45. #
  46. # Revision 1.4  1996/10/09 03:22:39  brianp
  47. # added unixware-shared config
  48. # removed old Amiga files from tar file list
  49. #
  50. # Revision 1.3  1996/09/27 17:30:40  brianp
  51. # added windows2 subdirectory, removed README.WIN from tar files
  52. #
  53. # Revision 1.2  1996/09/26 22:42:32  brianp
  54. # added linux-debug target
  55. # added widgets-old and widgets-sgi to tar file list
  56. #
  57. # Revision 1.1  1996/09/12 00:39:00  brianp
  58. # Initial revision
  59. #
  60.  
  61.  
  62.  
  63. # To add a new configuration for your system add it to the list below
  64. # then update the Make-config file.
  65.  
  66.  
  67.  
  68. default:
  69.     @echo "Type one of the following:"
  70.     @echo "  make aix                  for IBM RS/6000 with AIX"
  71.     @echo "  make aix-sl               for IBM RS/6000, make shared libs"
  72.     @echo "  make amiga-gcc            for Amigas with gcc and libnix (uses LOCALFLAGS)"
  73.     @echo "  make amiwin               for Amiga with SAS/C and AmiWin"
  74.     @echo "  make amix                 for Amiga 3000 UX  SVR4 v2.1 systems"
  75.     @echo "  make bsdos                for BSD/OS from BSDI using GCC"
  76.     @echo "  make dgux                 for Data General"
  77.     @echo "  make freebsd              for FreeBSD systems with GCC"
  78.     @echo "  make gcc                  for a generic system with GCC"
  79.     @echo "  make hpux                 for HP systems with HPUX"
  80.     @echo "  make hpux-gcc             for HP systems with HPUX using GCC"
  81.     @echo "  make hpux-sl              for HP systems with HPUX, make shared libs"
  82.     @echo "  make irix4                for SGI systems with IRIX 4.x"
  83.     @echo "  make irix5                for SGI systems with IRIX 5.x"
  84.     @echo "  make irix5-dso            for SGI systems with IRIX 5.x, make DSOs"
  85.     @echo "  make irix6-32             for SGI systems with IRIX 6.x, make 32-bit libs"
  86.     @echo "  make irix6-32-dso         for SGI systems with IRIX 6.x, make 32-bit DSOs"
  87.     @echo "  make irix6-n32            for SGI systems with IRIX 6.x, make n32-bit libs"
  88.     @echo "  make irix6-n32-dso        for SGI systems with IRIX 6.x, make n32-bit DSOs"
  89.     @echo "  make irix6-64             for SGI systems with IRIX 6.x, make 64-bit libs"
  90.     @echo "  make irix6-64-dso         for SGI systems with IRIX 6.x, make 64-bit DSOs"
  91.  
  92.     @echo "  make linux                for Linux systems with GCC"
  93.     @echo "  make linux-elf            for Linux systems, make ELF shared libs"
  94.     @echo "  make linux-mondello       for Linux with prototype Cirrus Mondello card"
  95.     @echo "  make mswindows            for Microsoft Windows"
  96.     @echo "  make macintosh            for Macintosh"
  97.     @echo "  make machten-2.2          for Macs w/ MachTen 2.2 (68k w/ FPU)"
  98.     @echo "  make machten-4.0          for Macs w/ MachTen 4.0.1 or newer with GNU make"
  99.     @echo "  make mklinux              for Linux on Power Macintosh"
  100.     @echo "  make netbsd               for NetBSD 1.0 systems with GCC"
  101.     @echo "  make next                 for NeXT systems with NEXTSTEP 3.3"
  102.     @echo "  make next-x86-x11         for NeXT on Intel x86 with X11"
  103.     @echo "  make next-x11             for NeXT with X11"
  104.     @echo "  make openstep             for NeXT systems with OPENSTEP 4.0"
  105.     @echo "  make os2                  for OS/2 with XFree86"
  106.     @echo "  make osf1                 for DEC Alpha systems with OSF/1"
  107.     @echo "  make qnx                  for QNX V4 systems with Watcom compiler"
  108.     @echo "  make sco                  for SCO Unix systems with ODT"
  109.     @echo "  make solaris-x86          for PCs with Solaris"
  110.     @echo "  make solaris-x86-gcc      for PCs with Solaris using GCC"
  111. #   @echo "  make solaris-gcc          for Solaris 2 systems with GCC"
  112.     @echo "  make sunos4               for Suns with SunOS 4.x"
  113.     @echo "  make sunos4-sl            for Suns with SunOS 4.x, make shared libs"
  114.     @echo "  make sunos4-gcc           for Suns with SunOS 4.x and GCC"
  115.     @echo "  make sunos4-gcc-sl        for Suns with SunOS 4.x, GCC, make shared libs"
  116.     @echo "  make sunos5               for Suns with SunOS 5.x"
  117.     @echo "  make sunos5-sl            for Suns with SunOS 5.x, make shared libs"
  118.     @echo "  make sunos5-gcc           for Suns with SunOS 5.x and GCC"
  119.     @echo "  make sunos5-gcc-sl        for Suns with SunOS 5.x, GCC, make shared libs"
  120.     @echo "  make sunos5-x11r6-gcc-sl  for Suns with X11R6, GCC, make shared libs"
  121.     @echo "  make sunSolaris-CC        for Solaris using C++ compiler"
  122.     @echo "  make ultrix-gcc           for DEC systems with Ultrix and GCC"
  123.     @echo "  make unicos               for Cray C90 (and other?) systems"
  124.     @echo "  make unixware             for PCs running UnixWare"
  125.     @echo "  make unixware-shared      for PCs running UnixWare, shared libs"
  126.     @echo "  make vistra               for Stardent Vistra systems"
  127.     @echo "  make clean"
  128.  
  129.  
  130.  
  131. aix aix-sl amiga-gcc amix bsdos debug dgux freebsd gcc hpux hpux-gcc hpux-sl irix4 irix5 irix5-dso irix6-32 irix6-n32 irix6-64 irix6-32-dso irix6-n32-dso irix6-64-dso linux linux-debug linux-elf machten-2.2 machten-4.0 mklinux netbsd next-x86-x11 next-x11 osf1 qnx sco solaris-x86 solaris-x86-gcc sunos4 sunos4-sl sunos4-gcc sunos4-gcc-sl sunos5 sunos5-sl sunos5-gcc sunos5-gcc-sl sunos5-x11r6-gcc-sl ultrix-gcc unicos unixware vistra:
  132.     -mkdir lib
  133.     touch src/depend
  134.     touch src-glu/depend
  135.     cd src ; $(MAKE) $@
  136.     cd src-glu ; $(MAKE) $@
  137.     cd src-tk ; $(MAKE) $@
  138.     cd src-aux ; $(MAKE) $@
  139.     cd demos ; $(MAKE) $@
  140.     cd samples ; $(MAKE) $@
  141.     cd book ; $(MAKE) $@
  142.  
  143. amiwin:
  144.     mklib.amiwin
  145.  
  146. linux-mondello:
  147.     -mkdir lib
  148.     touch src/depend
  149.     touch src-glu/depend
  150.     cd src ; $(MAKE) $@
  151.     cd mondello ; $(MAKE) $@
  152.     cd src-glu ; $(MAKE) $@
  153.     cd src-tk2 ; $(MAKE) $@
  154.     cd src-aux ; $(MAKE) $@
  155.     cd demos ; $(MAKE) $@
  156.     cd samples ; $(MAKE) $@
  157.     cd book ; $(MAKE) $@
  158.  
  159. macintosh:
  160.     @echo "See the README file for Macintosh intallation information"
  161.  
  162. mswindows:
  163.     @echo "See the windows/README file for installation information"
  164.  
  165. next:
  166.     -mkdir lib
  167.     cd src ; $(MAKE) -f Makefile.NeXT $@
  168.     cd src-glu ; $(MAKE) -f Makefile $@
  169.     cd src-tk ; $(MAKE) -f Makefile.NeXT $@
  170.     cd src-aux ; $(MAKE) -f Makefile.NeXT $@
  171.     cd NeXT ; $(MAKE) -f Makefile.NeXT $@
  172.  
  173. openstep:
  174.     -mkdir lib
  175.     cd src ; $(MAKE) -f Makefile.OpenStep $@
  176.     cd src-glu ; $(MAKE) -f Makefile.OpenStep $@
  177.     cd src-tk ; $(MAKE) -f Makefile.OpenStep $@
  178.     cd src-aux ; $(MAKE) -f Makefile.OpenStep $@
  179.     cd OpenStep; $(MAKE)
  180.  
  181. os2:
  182.     @echo "See the README.OS2 file for instructions"
  183.  
  184.  
  185.  
  186. # Remove .o files, emacs backup files, etc.
  187. clean:
  188.     -rm -f include/*~
  189.     -rm -f include/GL/*~
  190.     -rm -f src/*.o src/*~ src/*.a
  191.     -rm -f src-aux/*.o src-aux/*~ src-aux/*.a
  192.     -rm -f src-glu/*.o src-glu/*~ src-glu/*.a
  193.     -rm -f src-tk/*.o src-tk/*~ src-tk/*.a
  194.     -rm -f src-tk2/*.o src-tk2/*~ src-tk2/*.a
  195.     -rm -f book/*.o book/*~
  196.     -rm -f demos/*.o demos/*~
  197.     -rm -f samples/*.o samples/*~
  198.     -rm -f mondello/*.o mondello/*~ mondello/*.a
  199.  
  200. # Remove everthing that can be remade
  201. realclean: clean
  202.     -rm -f lib/*.a lib/*.so*
  203.     cd book ; $(MAKE) realclean
  204.     cd demos ; $(MAKE) realclean
  205.     cd samples ; $(MAKE) realclean
  206.     cd mondello; $(MAKE) realclean
  207.     -rm -f lib/*.a lib/*.so*
  208.  
  209.  
  210.  
  211. MESA_HOME = Mesa-2.1
  212. MESA_NAME = Mesa-2.1
  213.  
  214. TAR_FILES = \
  215.     $(MESA_HOME)/README         \
  216.     $(MESA_HOME)/README.AMIWIN      \
  217.     $(MESA_HOME)/README.GLUT        \
  218.     $(MESA_HOME)/README.OS2         \
  219.     $(MESA_HOME)/README.VMS         \
  220.     $(MESA_HOME)/README.DOS         \
  221.     $(MESA_HOME)/IAFA-PACKAGE       \
  222.     $(MESA_HOME)/LICENSE            \
  223.     $(MESA_HOME)/VERSIONS           \
  224.     $(MESA_HOME)/Makefile           \
  225.     $(MESA_HOME)/Make-config        \
  226.     $(MESA_HOME)/Imakefile          \
  227.     $(MESA_HOME)/descrip.mms        \
  228.     $(MESA_HOME)/mms-config         \
  229.     $(MESA_HOME)/MESADOS.BAT        \
  230.     $(MESA_HOME)/mklib.*            \
  231.     $(MESA_HOME)/include/*.h        \
  232.     $(MESA_HOME)/include/GL/*.h     \
  233.     $(MESA_HOME)/include/mondello/*.h   \
  234.     $(MESA_HOME)/src*/README[12]        \
  235.     $(MESA_HOME)/src*/Makefile      \
  236.     $(MESA_HOME)/src*/Makefile.NeXT     \
  237.     $(MESA_HOME)/src*/Imakefile     \
  238.     $(MESA_HOME)/src*/descrip.mms       \
  239.     $(MESA_HOME)/src*/mms_depend        \
  240.     $(MESA_HOME)/src*/DEPEND.DOS        \
  241.     $(MESA_HOME)/src*/MAKEFILE.DOS      \
  242.     $(MESA_HOME)/src*/*.def         \
  243.     $(MESA_HOME)/src*/*.rsp         \
  244.     $(MESA_HOME)/src*/depend        \
  245.     $(MESA_HOME)/src*/Makefile.OpenStep \
  246.     $(MESA_HOME)/src*/*.[ch]        \
  247.     $(MESA_HOME)/demos/Makefile     \
  248.     $(MESA_HOME)/demos/Imakefile        \
  249.     $(MESA_HOME)/demos/descrip.mms      \
  250.     $(MESA_HOME)/demos/*.[cf]       \
  251.     $(MESA_HOME)/demos/isosurf.dat      \
  252.     $(MESA_HOME)/book/Makefile      \
  253.     $(MESA_HOME)/book/Imakefile     \
  254.     $(MESA_HOME)/book/NOTES         \
  255.     $(MESA_HOME)/book/README        \
  256.     $(MESA_HOME)/book/*.[ch]        \
  257.     $(MESA_HOME)/samples/Makefile       \
  258.     $(MESA_HOME)/samples/Imakefile      \
  259.     $(MESA_HOME)/samples/NOTES      \
  260.     $(MESA_HOME)/samples/README     \
  261.     $(MESA_HOME)/samples/*.rgb      \
  262.     $(MESA_HOME)/samples/*.c        \
  263.     $(MESA_HOME)/widgets-old        \
  264.     $(MESA_HOME)/widgets-sgi        \
  265.     $(MESA_HOME)/windows            \
  266.     $(MESA_HOME)/NeXT           \
  267.     $(MESA_HOME)/mondello           \
  268.     $(MESA_HOME)/util/README        \
  269.     $(MESA_HOME)/util/*.c           \
  270.     $(MESA_HOME)/OpenStep
  271.  
  272.  
  273. tar:
  274.     cd .. ; \
  275.     tar -cvf $(MESA_NAME).tar $(TAR_FILES) ; \
  276.     gzip $(MESA_NAME).tar ; \
  277.     mv $(MESA_NAME).tar.gz $(MESA_HOME)
  278.  
  279. zip:
  280.     -rm $(MESA_NAME).zip
  281.     cd .. ; \
  282.     zip $(MESA_NAME).zip $(TAR_FILES) ; \
  283.     mv $(MESA_NAME).zip $(MESA_HOME)
  284.  
  285.  
  286.  
  287. SRC_FILES = src/Makefile src/*.[ch] include
  288.  
  289. srctar:
  290.     tar -cvf src.tar $(SRC_FILES) ; \
  291.     gzip src.tar
  292.  
  293.